package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 前置用例表
 * @TableName api_test_pre_case
 */
@TableName(value ="api_test_pre_case")
@Data
public class ApiTestPreCase extends BaseEntity {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用例id
     */
    @NotNull(message = "用例id不能为空")
    @TableField(value = "parent_case_id")
    private Integer parentCaseId;

    /**
     * 前置用例id
     */
    @NotNull(message = "前置用例id不能为空")
    @TableField(value = "pre_case_id")
    private Integer preCaseId;

    /**
     * 排序(越小越先执行)
     */
    @NotNull(message = "排序不能为空")
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 状态0启用1禁用
     */
    @TableField(value = "status_id")
    private Integer statusId;

}